home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / card_26894.txt < prev    next >
Text File  |  1989-02-26  |  2KB  |  66 lines

  1. -- card: 26894 from stack: in.2r
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2612
  5. -- name: OSErr
  6.  
  7.  
  8. -- part 2 (button)
  9. -- low flags: 00
  10. -- high flags: A004
  11. -- rect: left=245 top=24 right=52 bottom=347
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: try me
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   if the optionkey is down then edit script of me
  23.   ask "Type in an error number..."
  24.   put it into errorCode
  25.   if errorCode is empty then exit mouseup
  26.   OSErr "¬©1988SDrazga",errorCode
  27. end mouseUp
  28.  
  29.  
  30.  
  31. -- part contents for background part 2
  32. ----- text -----
  33. OSErr
  34.  
  35. -- part contents for background part 3
  36. ----- text -----
  37. This XCMD provides a friendly interface for reporting errors that are returned from other XCMDs & XFCNs.  It will display a dialog box with a short explanation of the error code.
  38.  
  39. This XCMD is ¬©1988 by Steve Drazga and all rights are reserved.  It may be used in any non-commercial, shareware, or commercial stacks as long as the following conditions are met:
  40.  
  41. 1) Within the credits of the stack the phrase 
  42. "Portions ¬©1988 Steve Drazga' should be included.
  43.  
  44. 2) Send a copy of your finished stack to me at:
  45. Steve Drazga
  46. AnalytX
  47. Box 388
  48. Southampton, PA  18966
  49.  
  50. If you need custom XCMDs/XFCNs, stacks, or HyperCard training for your organization contact Steve Drazga at AnalytX (215) 464-3733.
  51. The only compensation I receive will be seeing my efforts utilitized by others.
  52.  
  53.  
  54. -- part contents for background part 10
  55. ----- text -----
  56. Syntax:
  57.  
  58. OSErr "¬©1988SDrazga",<errorCode>
  59.  
  60. The first parameter passed must be the copyright notice (the ¬© symbol is option-g).
  61.  
  62. The second parameter is an integer representing the error code that needs to be reported.
  63.  
  64. -- part contents for background part 13
  65. ----- text -----
  66. 18